package com.k7.mobile.platform.web.action;

import java.util.List;

import com.k7.mobile.platform.bo.ISearchQueryBO;
import com.k7.mobile.platform.dataobject.GramDO;
import com.k7.mobile.platform.dataobject.QueryDO;

/**
 * 首页
 * @author ouwa_bb
 *
 */
public class SearchAction extends BaseAction{	
	private static final long serialVersionUID = -5048373149842002950L;
	
	private ISearchQueryBO searchQueryBO;
	private Integer page;
	private Integer typeId;
	private String keyword;
	private List<GramDO> list;
	private QueryDO queryDO;

	public String list() throws Exception {
		if(page == null)
			page = 1;
		
		queryDO = new QueryDO();
		
		queryDO.setToPage(page);
		queryDO.setKeyword(keyword);
		queryDO.setTypeId(typeId);
		list = searchQueryBO.searchGame(queryDO);
		return SUCCESS;
	}


	public Integer getPage() {
		return page;
	}


	public void setPage(Integer page) {
		this.page = page;
	}




	public Integer getTypeId() {
		return typeId;
	}


	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}


	public String getKeyword() {
		return keyword;
	}


	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}


	public List<GramDO> getList() {
		return list;
	}


	public void setSearchQueryBO(ISearchQueryBO searchQueryBO) {
		this.searchQueryBO = searchQueryBO;
	}


	public QueryDO getQueryDO() {
		return queryDO;
	}


	public void setQueryDO(QueryDO queryDO) {
		this.queryDO = queryDO;
	}


}
